/* 
 * File:   FileOperator.h
 * Author: itu
 *
 * Created on November 26, 2011, 3:19 PM
 */
#include <iostream>
#include <string>
#include <fstream>

#ifndef FILEOPERATOR_H
#define	FILEOPERATOR_H

using namespace std;

class FileOperator {
public:
    FileOperator(string);
    
    bool openFileForReading();
    bool openFileForWriting();
    bool closeFile();
    bool hasNextLine();
    string getLine();
private:
    string fileName;
    bool isFileOpen;
    fstream file;
    string line;
    
};

#endif	/* FILEOPERATOR_H */

